﻿using BCCommon.ExceptionExtensions;
using BCDto.UploadHandleComponent;

namespace BCService.UploadHandleComponent
{
    /// <summary>
    /// 上传文件信息处理服务接口
    /// </summary>
    public interface IUploadFileInfoHandleService
    {
        /// <summary>
        /// 初始化上传文件信息
        /// </summary>
        /// <param name="fileName">文件名</param>
        /// <param name="usage">文件用途</param>
        /// <param name="fileSuffix">缺少后缀时使用jpg固定后缀</param>
        /// <exception cref="UploadFileException"></exception>
        /// <returns></returns>
        UploadFileDto Init(string fileName,string usage, string fileSuffix);
        /// <summary>
        /// 修改上传文件所属目录
        /// </summary>
        /// <param name="uploadFileDto">上传文件</param>
        void ChangeFolderName(UploadFileDto uploadFileDto);
    }
}
